<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    <html:base />
    
    <title>ModifyPasswordStep1.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <script language="javascript">
function check_input(theForm)
{
  if (theForm.oldpassword.value == "")
  {
    alert("请输入旧密码.");
    theForm.oldpassword.focus();
    return (false);
  }
  if (theForm.newpassword.value != theForm.confirmpassword.value)
  {
    alert("两次输入密码不一致.");
    theForm.confirmpassword.focus();
    return (false);
  }
}
</script>

<%@ include file="header.jsp"%>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="120" background="images/in_left_bg.gif"><%@ include file="left.jsp"%></td>
    <td width="648" align="center" valign="top">	
    	<form name="form1" method="post" action="ModifyPasswordStep2.jsp" onsubmit="return check_input(this)">
      <br>
      <p class="title1">修改密码</p>
      <table width="389" height="177" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#CCCCCC">
        <tr>
          <td width="135" height="29"><div align="right">用户名: </div></td>
          <td width="236"><%String username = (String)session.getValue("name");out.println(username);%></td>
        </tr>
        <tr>
          <td height="29"><div align="right">旧密码: 
            </div>
            <div align="right"></div></td>
          <td height="29"><input name="oldpassword" type="password"  class="data" id="oldpassword2" size="25" maxlength="16" ></td>
        </tr>
        <tr>
          <td height="29"><div align="right">新密码: 
            </div>
            <div align="right"></div></td>
          <td height="29"><input name="newpassword" type="password"  class="data" id="newpassword2" size="25" maxlength="16" ></td>
        </tr>
        <tr>
          <td height="44"><div align="right">确认密码: 
            </div></td>
          <td height="44"><input name="confirmpassword" type="password"  class="data" id="confirmpassword2" size="25" maxlength="16" ></td>
        </tr>
        <tr>
          <td height="44" colspan="2"><div align="center">
            <input type="submit" name="Submit" value="修改">
            <input type="reset" name="Submit2" value="取消">
</div></td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
<%@ include file="footer.jsp"%>
</body>
</html:html>
